<template>
  <div>
    <el-descriptions class="margin-top" title="设备详情" direction="vertical" :column="4" border>
      <el-descriptions-item label="设备名称">{{equipment.equipmentName}}</el-descriptions-item>
      <el-descriptions-item label="设备描述">{{equipment.description}}</el-descriptions-item>
      <el-descriptions-item label="保养周期" >{{equipment.maintain}}</el-descriptions-item>
      <el-descriptions-item label="价格" >{{equipment.price}}</el-descriptions-item>
      <el-descriptions-item label="类型">
        <el-tag size="small">大型设备</el-tag>
      </el-descriptions-item>
<!--      <el-descriptions-item label="联系地址">江苏省苏州市吴中区吴中大道 1188 号</el-descriptions-item>-->
    </el-descriptions>
  </div>

</template>

<script>
import {getEquipment} from "@/api/equipment/equipment"
export default {
  name: "data",
  data(){
    return{
      equipment:{}
    }
  },
  created() {
    const equipmentId = this.$route.params && this.$route.params.equipmentId
    this.getData(equipmentId);

  },
  methods:{
    getData(equipmentId){
      getEquipment(equipmentId).then(response =>{
        // console.log("游客数据",response)
        this.equipment = response.data

      });
    }
  }
}
</script>

<style scoped>

</style>
